/*
 * Creation : 20/08/2013
 */
/**
 * 
 */
package com.jam.sqlite;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * @author Fernando Ariel Perelli
 * 
 */
public class SQLiteConnection {

	private static SQLiteConnection sqLiteConnection;

	private SQLiteConnection() {
	}

	public static SQLiteConnection getIntance() {
		sqLiteConnection = new SQLiteConnection();
		return sqLiteConnection;
	}

	public Connection getConnection() throws ClassNotFoundException, SQLException {
		Class.forName("org.sqlite.JDBC");
		Connection connection = DriverManager.getConnection("jdbc:sqlite:C:\\MySQLiteDB\\MySQLiteDB");
		return connection;
	}
}
